﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="gameweb_back_index.aspx.cs" Inherits="backmanage_gameweb_back_index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>GAMEWEB后台管理首页</title>
    <script type="text/javascript" src="js/jquery1.6.2.js"></script>
    <link rel="stylesheet" href="css/jquery.ui.all.css" /> 
	<script type="text/javascript" src="js/jquery.ui.position.js"></script> 
	<script type="text/javascript" src="js/jquery.ui.core.js"></script> 
	<script type="text/javascript" src="js/jquery.ui.widget.js"></script> 
	<script type="text/javascript" src="js/jquery.ui.button.js"></script> 
	<script type="text/javascript" src="js/jquery.ui.tabs.js"></script> 
	<script type="text/javascript" src="js/jquery.ui.dialog.js"></script> 
	<link rel="stylesheet" href="css/demos.css" /> 
    <link rel="stylesheet" type="text/css" href="css/index.css" />
    <script type="text/javascript">
       function NavList(ulId)
       {
         $(ulId).toggle("fast");
       }
       $(function(){
              var height=window.screen.availHeight-190;
              var width=window.screen.availWidth-270;
              var iframeSrc;
              $("#windows").attr("style"," width:"+width+"px;height:"+height+"px");
              $("#form1 div.left").attr("style","height:"+height+"px");
              $("a").click(function(){
              iframeSrc=$(this).attr("title");
                 addTab($(this).attr("id"));
                 
              });
        var $tab_title_input = $( "#tab_title"),
		$tab_content_input = $( "#tab_content" );
		var tab_counter = 1;
//label
			var $tabs = $( "#tabs").tabs({
			tabTemplate: "<li><a href='#{href}'>#{label}</a> <span class='ui-icon ui-icon-close'>Remove Tab</span></li>",
			add: function( event, ui ) {
				var tab_content = $("#div_add_tab1").text();
				$( ui.panel ).append( "<iframe width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"auto\" src=\""+iframeSrc+"\"></iframe>" );
			}
		});    
       function addTab(id) {
		
		     var leng=$("#tabs-"+id).length;
		    if(leng==0)
		    {
			var tab_title = $("#"+id).text();
			$tabs.tabs( "add", "#tabs-" + id, tab_title );
			//tab_counter++;
			}
		}
       $( "#tabs span.ui-icon-close" ).live( "click", function() {
			var index = $( "li", $tabs ).index( $( this ).parent() );
			$tabs.tabs( "remove", index );
		});
		});
    </script>
    <style type="text/css"> 
	#dialog label, #dialog input { display:block; }
	#dialog label { margin-top: 0.5em; }
	#dialog input, #dialog textarea { width: 95%; }
	#tabs { margin-top: 1em; }
	#tabs li .ui-icon-close { float: left; margin: 0.4em 0.2em 0 0; cursor: pointer; }
	#add_tab { cursor: pointer; }
	</style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top">欢迎光临GAMEWEB后台管理系统</div>
    <div class="left" id="div_add_tab">
      <p onclick="NavList(newssystem);">新闻管理系统</p>
        <ul id="newssystem">
          <li><a id="1" href="?news=1" title="newssystem/news_newsclassmanage.aspx" target="manage">类别管理</a></li>
            <li><a id="2" href="?news=2" title="newssystem/news_newsadd.aspx" target="manage">发布新闻</a></li>
            <li><a id="3" href="?news=3" title="newssystem/news_newsmanage.aspx" target="manage">新闻管理</a></li>
        </ul>
      <p onclick="NavList(adsystem);">广告管理系统</p>
        <ul id="adsystem">
          <li><a id="admanage" href="?ad=1" title="adsystem/ad_admanage.aspx" target="manage">广告管理</a></li>
          <li><a id="postionmanage" href="?as=2" title="adsystem/ad_positionmanage.aspx" target="manage">广告位管理</a></li>
        </ul>
      <p onclick="NavList(usersystem);">用户管理系统</p>
         <ul id="usersystem">
          <li><a id="usermanage" href="?user=1" title="usersystem/user_questionmanage.aspx" target="manage">密保管理</a></li>
        </ul>
       <p onclick="NavList(spreadsystem);">推广系统</p>
         <ul id="spreadsystem">
          <li><a id="spreader" href="?sp=1" title="spreadsystem/spread_spreader.aspx" target="manage">推广员管理</a></li>
          <li><a id="spreadip" href="?sp=2" title="spreadsystem/spread_ip.aspx" target="manage">网吧IP管理</a></li>
        </ul>
        <p onclick="NavList(gamesystem);">游戏系统</p>
         <ul id="gamesystem">
          <li><a id="gameadd" href="?gm=1" title="gamesystem/game_gamemanage.aspx" target="manage">游戏管理</a></li>
        </ul>
        <p onclick="NavList(cardsystem);">新手卡系统</p>
         <ul id="cardsystem">
          <li><a id="carddeputyadd" href="?cd=1" title="cardsystem/card_deputy.aspx" target="manage">新手卡类别</a></li>
          <li><a id="cardmasteradd" href="?cd=2" title="cardsystem/card_master.aspx" target="manage">新手卡管理</a></li>
        </ul>
        <p onclick="NavList(emailsystem);">邮件系统</p>
         <ul id="emailsystem">
          <li><a id="mailmanage" href="?cd=1" title="mailsystem/mail_manage.aspx" target="manage">邮箱管理</a></li>
          <li><a id="mailgroup" href="?cd=2" title="mailsystem/mail_group.aspx" target="manage">分组管理</a></li>
          <li><a id="maillist" href="?cd=3" title="mailsystem/mail_log.aspx" target="manage">发信列表</a></li>
          <li><a id="mailsmtp" href="?cd=4" title="mailsystem/mail_smtp.aspx" target="manage">邮箱设置</a></li>
        </ul>
    </div>
    <div  id="windows" class="right">
    <div id="tabs">
	<ul></ul>
    </div>
      <iframe id="manage" width="0" height="0" frameborder="0" scrolling="auto"></iframe>
    </div>
    </form>
</body>
</html>
